package com.choosefine.it.common.exception;
/**
 * 业务异常类
 * @author liaozhanggen
 *
 */
public class BusinessException extends Exception {
	
	private String statusCode;
	private String message;
	
	public String getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}
	

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	private static final long serialVersionUID = -110694081897933969L;

	public BusinessException() {
		super();
	}

	public BusinessException(String code,String message) {
		super(message);
		this.statusCode = code;
		this.message = message;
	}
	
	public BusinessException(Integer code,String message) {
		super(message);
		this.statusCode = String.valueOf(code);
		this.message = message;
	}

	public BusinessException(String code,String message,Throwable ex) {
		super(ex);
		this.statusCode = code;
		this.message = message;
	}
	
	public BusinessException(Integer code,String message,Throwable ex) {
		super(ex);
		this.statusCode = String.valueOf(code);
		this.message = message;
	}
}
